import request from '@/utils/request'

// 查询租赁服务规格列表
export function listLabel(query) {
  return request({
    url: '/construction/label/list',
    method: 'get',
    params: query
  })
}

// 查询租赁服务规格详细
export function getLabel(labelId) {
  return request({
    url: '/construction/label/' + labelId,
    method: 'get'
  })
}

// 新增租赁服务规格
export function addLabel(data) {
  return request({
    url: '/construction/label',
    method: 'post',
    data: data
  })
}

// 修改租赁服务规格
export function updateLabel(data) {
  return request({
    url: '/construction/label',
    method: 'put',
    data: data
  })
}

// 删除租赁服务规格
export function delLabel(labelId) {
  return request({
    url: '/construction/label/' + labelId,
    method: 'delete'
  })
}

// 导出租赁服务规格
export function exportLabel(query) {
  return request({
    url: '/construction/label/export',
    method: 'get',
    params: query
  })
}
